import type { IForm } from '@/base-ui/HyForm/types';

export const goodsSearchFormConfig: IForm = {
  formItems: [
    {
      type: 'input',
      field: 'name',
      label: '商品名称',
      placeholder: '请输入商品名称'
    },
    {
      type: 'select',
      field: 'status',
      label: '商品状态',
      placeholder: '请选择商品状态',

      other: {
        options: [
          {
            label: '在售',
            value: 1
          },
          {
            label: '下架',
            value: 0
          }
        ]
      }
    },
    {
      type: 'datepicker',
      field: 'createAt',
      label: '创建时间',
      other: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间'
      }
    }
  ],
  reactiveCol: {
    xs: 24,
    sm: 24,
    md: 12,
    lg: 8,
    xl: 8
  },
  labelWidth: '100px',
  gutter: 20
};
